package com.vodone.v1pin.core.model
{
	import com.vodone.v1pin.navigator.view.vo.NavVO;

	/**
	 * 保留每个模块的条件以及模块名称的管理 
	 */	
	[Bindable]
	public class ConditionVO
	{
		/**
		 * 首页 
		 */		
		public static const THREELOGIN:String = "threeLogin";
		/**
		 * 首页 
		 */		
		public static const INDEX:String = "index"; 
		/**
		 * 商品列表页 
		 */		
		public static const PRODUCTLIST:String = "ProductList"; 
		/**
		 * 个人信息 
		 */		
		public static const USERINFO:String = "UserInfo";
		/**
		 * 活动页 
		 */		
		public static const ACTIVE:String = "active"; 
		/**
		 *  品牌页
		 */		
		public static const BRANDLIST:String = "brandlist";
		/**
		 * 折扣专区 
		 */		
		public static const DISCOUNT:String = "discount";
		/**
		 * 搜索 
		 */		
		public static const SEARCH:String = "search";
		/**
		 * 活动详情页
		 */		
		public static const ACTIVEDETAIL:String = "activeDetail";
		
		
		/**
		 * 弹出单品详情框 
		 */		
		public static const DETAIL:String = "detail";
		/**
		 * 弹出重置密码框 
		 */		
		public static const RESETPASSWORD:String = "resetPassword";
		/**
		 * 弹出登陆注册框 
		 */		
		public static const LOGIN:String = "login";
		/**
		 * 弹出邮箱
		 */	
		public static const MAIL:String = "mail";
		/**
		 * 弹出手机
		 */	
		public static const MOBILE:String = "mobile";
		/**
		 * 弹出退货
		 */	
		public static const RETURNORDER:String = "returnOrder";
		/**
		 * 弹出邮箱成功
		 */	
		public static const MAILOK:String = "mailOk";
		
		/**
		 * 弹出购物框 
		 */		
		public static const MYBAG:String = "mybag"; 
		/**
		 * 弹出购买须知 
		 */		
		public static const HELP:String = "help"; 
		/**
		 * 弹出注册条款 
		 */		
		public static const REGISTHELP:String = "registHelp"; 
		
		/**
		 * 弹邮箱验证密码成功
		 */		
		public static const RESETPWDOK:String = "resetPwd"; 
		
		/**
		 * 注册成功
		 */		
		public static const REGISTOK:String = "rigistOk"; 
		
		public static function parasModule( name:String ):String
		{
			if( name == null )
			{
				return "";
			}
			var returnName:String = "";
			switch( name.toLowerCase() ){
				case "index":
					returnName = INDEX;
				break;
				case "productlist":
					returnName = PRODUCTLIST;
					break;
				case "userinfo":
					returnName = USERINFO;
					break;
				case "detail":
					returnName = DETAIL;
					break;
				case "active":
					returnName = ACTIVE;
					break;
				case "brandlist":
					returnName = BRANDLIST;
					break;
				case "discount":
					returnName = DISCOUNT;
					break;
				case "searchlist":  //中视专区搜索走商品列表页
					returnName = SEARCH;
					break;
				case "activedetail":  //中视专区搜索走商品列表页
					returnName = ACTIVEDETAIL;
					break;
			}
			return returnName;
		}
		
		public var navVO:NavVO;
		
		public var keyWords:String;
		public var typeId:int = 0;
		public var id:String;
		public var colorId:String;
		public var sort:int = 0;
		
		public var windowApp:String;
		public var windowId:String;
		
		public var oid:String;
		public var mailType:String;
		public var mailTypeid:String;
		public var valicode:String;
	}
}